﻿<Window x:Class="AutoLogOffInWPF.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="600" Width="600">
    <DockPanel LastChildFill="True">
        <Border DockPanel.Dock="Top" BorderBrush="Navy" BorderThickness="2" >
            <StackPanel Orientation="Horizontal" >
                <Menu Background="White"  Height="22" Name="menu1" Width="55">
                    <MenuItem Header="FIle">
                        <MenuItem Header="Logoff" Click="Logoff_Click" />
                        <MenuItem Header="Exit" Click="btnExit_Click" />
                    </MenuItem>
                </Menu>
            </StackPanel>
        </Border>
        <Border DockPanel.Dock="Bottom" BorderBrush="Navy"  BorderThickness="2" >
            <Grid  Margin="0,0,0,0" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid Grid.Column="2">
                    <Border Opacity=".9"   BorderThickness="1,1,0,0" CornerRadius="8,0,0,0" BorderBrush="#FF526C7B" Padding="4,0,4,0">
                        <StackPanel Orientation="Vertical" VerticalAlignment="Center"  >
                            <TextBlock Margin="2,0,0,0"  VerticalAlignment="Center" FontSize="17"   Name="systemDate">Date,Time</TextBlock>
                            <TextBlock Margin="2,0,0,0" VerticalAlignment="Center" FontSize="17" Name="tbuserName"> Current user</TextBlock>
                            <TextBlock Margin="2,0,0,0" VerticalAlignment="Center" FontSize="17" Name="tblLogoffTime"> LogoffTime</TextBlock>
                        </StackPanel>
                    </Border>
                </Grid>
            </Grid>
        </Border>
        <Border DockPanel.Dock="Left" BorderBrush="Navy" BorderThickness="2" >
            <Button Width="50"  ></Button>
        </Border>
        <Border Name="bdrMainArea"  BorderBrush="Navy" BorderThickness="2" >
            <StackPanel Orientation="Vertical">
                <TextBlock   VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="17" Name="tblStatus"></TextBlock>
                <TextBlock   VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="17" Name="tblLastUserActivityTypeOSMessage"></TextBlock>
                <TextBlock   VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="17" Name="tblLastOSMessage"></TextBlock>
            </StackPanel>
        </Border>
    </DockPanel>
</Window>
